#!/bin/bash

sudo apt update

sudo apt install -y python3-dev

curl https://bootstrap.pypa.io/get-pip.py -o ~/get-pip.py

python3 ~/get-pip.py --user

echo 'export PATH=$PATH:~/.local/bin' >> ~/.zshrc

zsh

source ~/.zshrc

pip -V

mkdir ~/.pip

touch ~/.pip/pip.conf

echo '[global]' >> ~/.pip/pip.conf
echo 'index-url = https://pypi.tuna.tsinghua.edu.cn/simple' >> ~/.pip/pip.conf
echo '[install]' >> ~/.pip/pip.conf
echo 'trusted-host=mirrors.aliyun.com' >> ~/.pip/pip.conf

pip install pipenv --user
